package Utils;


/**
 *
 * @author Axel Guillerme
 */
public class Timer {

    public long startTimer;
    public long endTimer;
    
    public Timer(){
        this.startTimer = 0;
        this.endTimer = 0;
    }
    
    public void initTimer(){
        this.startTimer = System.nanoTime();
    }
   
    public void endTimer(){
        this.startTimer = System.nanoTime();
    }
    
    public long getTimeProcess(){
        return (endTimer-startTimer);
    }
}
